<?php

/**
 * 媒资
 */
Route::get('entity/asset/audio/iaassets', ['as'=> 'entity.asset.audio.iaassets.index', 'uses' => 'Entity\Asset\Audio\IaassetController@index']);
Route::post('entity/asset/audio/iaassets', ['as'=> 'entity.asset.audio.iaassets.store', 'uses' => 'Entity\Asset\Audio\IaassetController@store']);
Route::get('entity/asset/audio/iaassets/create', ['as'=> 'entity.asset.audio.iaassets.create', 'uses' => 'Entity\Asset\Audio\IaassetController@create']);
Route::put('entity/asset/audio/iaassets/{iaassets}', ['as'=> 'entity.asset.audio.iaassets.update', 'uses' => 'Entity\Asset\Audio\IaassetController@update']);
Route::patch('entity/asset/audio/iaassets/{iaassets}', ['as'=> 'entity.asset.audio.iaassets.update', 'uses' => 'Entity\Asset\Audio\IaassetController@update']);
Route::delete('entity/asset/audio/iaassets/{iaassets}', ['as'=> 'entity.asset.audio.iaassets.destroy', 'uses' => 'Entity\Asset\Audio\IaassetController@destroy']);
Route::get('entity/asset/audio/iaassets/{iaassets}', ['as'=> 'entity.asset.audio.iaassets.show', 'uses' => 'Entity\Asset\Audio\IaassetController@show']);
Route::get('entity/asset/audio/iaassets/{iaassets}/edit', ['as'=> 'entity.asset.audio.iaassets.edit', 'uses' => 'Entity\Asset\Audio\IaassetController@edit']);

// 剧集详情
Route::get('entity/asset/audio/iaassets/iaasset_details/{iaasset_id}', ['as'=> 'entity.asset.audio.iaassets.iaasset_details', 'uses' => 'Entity\Asset\Audio\IaassetController@iaassetDetails']);

// 批量导入
Route::get('entity/asset/audio/iaassets/batch_import/view', ['as'=> 'entity.asset.audio.iaassets.batch_import_view', 'uses' => 'Entity\Asset\Audio\IaassetController@batchImportView']);
Route::post('entity/asset/audio/iaassets/batch_import', ['as'=> 'entity.asset.audio.iaassets.batch_import', 'uses' => 'Entity\Asset\Audio\IaassetController@batchImport']);
// 批量导入进度
Route::get('entity/asset/audio/iaassets/batch_import/bacth_import_progress',[
    'as'=> 'entity.asset.audio.iaassets.bacth_import_progress',
    'uses' => 'Entity\Asset\Audio\IaassetController@bacthImportProgress'
]);

/**
 * 剧集, 上下线和发布
 */
// 上线发布
Route::get('entity/asset/audio/iaassets/iaasset_details/publish/view',[
    'as'=> 'entity.asset.audio.iaassets.publish', 
    'uses' => 'Entity\Asset\Audio\IaassetController@publish'
]);
// 单个,批量上线发布
Route::post('entity/asset/audio/iaassets/iaasset_details/publish_one/view',[
    'as'=> 'entity.asset.audio.iaassets.publish_one', 
    'uses' => 'Entity\Asset\Audio\IaassetController@batchModerate'
]);
// 单个,批量下线发布
Route::post('entity/asset/audio/iaassets/iaasset_details/publish_down_one/view',[
    'as'=> 'entity.asset.audio.iaassets.publish_down_one', 
    'uses' => 'Entity\Asset\Audio\IaassetController@batchModerate'
]);
// 下线发布
Route::get('entity/asset/audio/iaassets/iaasset_details/publish_down/view',[
    'as'=> 'entity.asset.audio.iaassets.publish_down', 
    'uses' => 'Entity\Asset\Audio\IaassetController@publishDown'
]);
// 全部上线
Route::get('entity/asset/audio/iaassets/iaasset_details/all_up/view',[
    'as'=> 'entity.asset.audio.iaassets.all_up',
    'uses' => 'Entity\Asset\Audio\IaassetController@allUp'
]);
// 全部下线
Route::get('entity/asset/audio/iaassets/iaasset_details/all_down/view',[
    'as'=> 'entity.asset.audio.iaassets.all_down',
    'uses' => 'Entity\Asset\Audio\IaassetController@allDown'
]);
// 单个上线按钮
Route::post('entity/asset/audio/iaassets/iaasset_details/up/view',[
    'as'=> 'entity.asset.audio.iaassets.up',
    'uses' => 'Entity\Asset\Audio\IaassetController@batchModerate'
]);
// 单个下线按钮
Route::post('entity/asset/audio/iaassets/iaasset_details/down/view',[
    'as'=> 'entity.asset.audio.iaassets.down',
    'uses' => 'Entity\Asset\Audio\IaassetController@batchModerate'
]);
// 查询进度
Route::get('entity/asset/audio/iaassets/iaasset_details/progress/view',[
    'as'=> 'entity.asset.audio.iaassets.progress',
    'uses' => 'Entity\Asset\Audio\IaassetController@queryProgress'
]);

// 清除缓存
Route::get('entity/asset/audio/iaassets/clear_cache/view',[
    'as'=> 'entity.asset.audio.iaassets.clear_cache',
    'uses' => 'Entity\Asset\Audio\IaassetController@clearCache'
]);
